import cv2
def show_video():
    capture = cv2.VideoCapture(0)
    while True:
     ret,frame = capture.read()
     if ret == False:
        break
     cv2.imshow("vadio",frame)
     c= cv2.waitkey(10000)
     if c == 27:
         break




show_video()
